export const routes = [
  {
    path: '/',
    name: 'login',
    component: () => import('../views/login'),
    meta: {
      menuShow: true
    },
    children: [
      {
        path: '/login',
        name: 'login',
        component: () => import('../views/login'),
        meta: {
          menuShow: true,
          title: '登录'
        }
      }
    ]
  },
  {
    path: '/layout',
    name: 'layout',
    component: () => import('../views/layout'),
    meta: {
      menuShow: true
    },
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('../views/layout/home'),
        meta: {
          title: '主界面',
          menuShow: true,
          icons: 'el-icon-monitor'
        }
      }
    ]
  },
  {
    path: '/personalManage',
    name: 'personalManage',
    component: () => import('../views/layout'),
    meta: {
      title: '节目管理',
      menuShow: true,
      icons: 'el-icon-user'
    },
    children: [
      {
        path: '/personal',
        name: 'personal',
        component: () => import('@/views/layout/personalManage/personal'),
        meta: {
          title: '个人节目',
          menuShow: true,
          icons: 'el-icon-user'
        }
      },
      {
        path: '/addPersonMusic',
        name: 'addPersonMusic',
        component: () => import('@/views/layout/personalManage/uploadMusic'),
        meta: {
          title: '上传个人节目',
          menuShow: false,
          icons: 'el-icon-user'
        }
      }
    ]
  },
  {
    path: '/deviceManage',
    name: 'deviceManage',
    component: () => import('../views/layout'),
    meta: {
      title: '设备管理',
      menuShow: true,
      icons: 'el-icon-data-board'
    },
    children: [
      {
        path: '/device',
        name: 'device',
        component: () => import('@/views/layout/deviceManage/deviceManage'),
        meta: {
          title: '设备管理',
          menuShow: true,
          icons: 'el-icon-data-board'
        }
      }
    ]
  },

  {
    path: '/userManage',
    name: 'userManage',
    component: () => import('../views/layout'),
    meta: {
      title: '用户管理',
      menuShow: true,
      icons: 'el-icon-data-board'
    },
    children: [
      {
        path: '/user',
        name: 'user',
        component: () => import('@/views/layout/userManage/userManage'),
        meta: {
          title: '用户管理',
          menuShow: true,
          icons: 'el-icon-data-board'
        }
      }
    ]
  },


  {
    path: '/timeManage',
    name: 'timeManage',
    component: () => import('../views/layout'),
    meta: {
      title: '定时任务',
      menuShow: true,
      icons: 'el-icon-data-board'
    },
    children: [
      {
        path: '/timeTasks',
        name: 'timeTasks',
        component: () => import('@/views/layout/timeManage/timeTasks'),
        meta: {
          title: '定时任务',
          menuShow: true,
          icons: 'el-icon-data-board'
        }
      }
    ]
  },
  {
    path: '/electronicMap',
    name: 'electronicMap',
    component: () => import('../views/layout'),
    meta: {
      title: '电子地图',
      menuShow: true,
      icons: 'el-icon-data-board'
    },
    children: [
      {
        path: '/map',
        name: 'map',
        component: () => import('@/views/layout/electronicMap/map'),
        meta: {
          title: '电子地图',
          menuShow: true,
          icons: 'el-icon-data-board'
        }
      }
    ]
  },
  {
    path: '/scroll',
    name: 'scroll',
    component: () => import('../views/scroll/index'),
    meta: {
      menuShow: true
    }
  }
];
